﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PersonFavouritesList.ascx.cs" Inherits="Job.Web.userControls.Personal.PersonFavouritesList" %>


<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<table runat="server" visible="false" id="msgTab" width="80%" align="center">
    <tr>
        <td height="30px" align="center" runat="server" id="msgTd"></td>
    </tr>    
</table>

<table border="1px" bordercolor="#d8e1e7" style="border-style: solid; border-collapse: collapse"
    width="750px" class="ResumeBaseTable" align="left">
        <tr>
            <td class="title_1">
                <asp:Label ID="lbledu" runat="server" Text="个人收藏"></asp:Label>
            </td>
        </tr>
    <tr>
        <td height="50px">
            <asp:GridView ID="gridFavorites" runat="server" CssClass="table_style1" Width="100%" 
                AutoGenerateColumns="False" onrowdatabound="gridFavorites_RowDataBound" 
				onrowcommand="gridFavorites_RowCommand" onrowdeleting="gridFavorites_RowDeleting">
                <HeaderStyle CssClass="table_style1_th" />
                <Columns>
                    <asp:TemplateField HeaderText="职位名称">
                        <ItemTemplate>
                            <asp:HyperLink runat="server" ID="hlJob" Target="_blank"></asp:HyperLink>
                            <asp:Label ID="lbJobNo" runat="server" Text='<%# Bind("job_no") %>' Visible="false"></asp:Label>
                            <asp:Label ID="lbJobName" runat="server" Text='<%# Bind("name") %>' Visible="false"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" Width="60%" HorizontalAlign="Left" />
                    </asp:TemplateField>                    
                    <asp:BoundField DataField="favorite_time" HeaderText="收藏时间" ItemStyle-CssClass="table_style1_td"
                        HtmlEncode ="false" DataFormatString="{0:yyyy-MM-dd}">
                        <ItemStyle CssClass="table_style1_td" Width="20%"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lbFavoriteId" runat="server" Text='<%# Bind("favorites_id") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                    
                    <asp:TemplateField InsertVisible="False" ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="删除" CommandArgument='<%# Eval("favorites_id") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#EAECEC" />
                <AlternatingRowStyle BackColor="#F6F6F6" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            <webdiyer:AspNetPager ID="pagerButtom" runat="server" 
	            ButtonImageNameExtension="n" ButtonImageExtension=".gif" 
                DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" 
		        PagingButtonSpacing="10px" ButtonImageAlign="left" 
		        onpagechanged="pagerButtom_PageChanged" CssClass="pagination" 
		        CurrentPageButtonClass="current" PagingButtonClass="" 
		        PagingButtonLayoutType="Span" PageSize=15 AlwaysShow="false">
            </webdiyer:AspNetPager>
        </td>
    </tr>
</table>


<br />
